package cn.telling.sellercentre.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import cn.telling.product.service.IProductMainService;
import cn.telling.sellerCenter.vo.ProductMainVO;
import cn.telling.sellercentre.dao.IProductMainDao;


/**   
 * @Title: ProductMainService.java 
 * @Package com.product.service.Impl 
 * @Description: TODO(描述该文件做什么) 
 * @author  luoqingm 
 */
@Service("productMainService")
public class ProductMainServiceImpl implements IProductMainService {
	
	@Autowired
	@Qualifier("productMainDao")
	private IProductMainDao dao;
	
	public IProductMainDao getDao() {
		return dao;
	}
	public void setDao(IProductMainDao dao) {
		this.dao = dao;
	}
	/**
	 * 根据产品产品id查询商品
	 */
	@Override
	public ProductMainVO getProductMainByProductId(String productId){
		// TODO Auto-generated method stub
		return getDao().getProductMainByProductId(productId);
	}
	
	
}

